﻿#region Imports
using System;
using System.ComponentModel;
#endregion Imports

namespace PlayRandom.Models
{
    [Serializable]
    public class BaseModel : INotifyPropertyChanged
    {
        #region INotifyPropertyChanged members
        public event PropertyChangedEventHandler PropertyChanged;

        public void RaisePropertyChanged(string propName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propName));
        }
        #endregion INotifyPropertyChanged members
    }
}
